package com.example.function.pool.model.pojo;


import com.example.common.support.ApplicationContextProvider;
import com.example.function.pool.model.one.AssetsType;
import com.example.function.pool.service.IAssetsTypeService;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;

/**
 * Description: <AssetsTypePojo vo>. <br>
 * <p>
 * generate time:2021-7-27 15:55:39
 *
 * @author hanqf
 * @version V1.0
 */
@Data
public class AssetsTypePojo implements Serializable {
    private static final long serialVersionUID = 1L;

    /*
     * 资产类型id
     */
    private Long id;


    /*
     * 名称
     */
    private String assetsTypeName;


    /**
     * 实体对象复制到数据对象
     */
    public static AssetsTypePojo wrapper(AssetsType assetsType) {
        AssetsTypePojo assetsTypePojo = new AssetsTypePojo();
        BeanUtils.copyProperties(assetsType, assetsTypePojo);
        final IAssetsTypeService assetsTypeService = (IAssetsTypeService) ApplicationContextProvider.getBean("assetsTypeService");

        return assetsTypePojo;
    }

}



